import React from 'react';
import { Link } from 'react-router-dom';
import { FileCheck } from 'lucide-react';

const Sidebar = ({ width }) => {
  return (
    <div className="sidebar shadow-lg" style={{ width: `${width}px` }}>
      <div className="p-5">
        <div className="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4">
          <FileCheck className="w-8 h-8 text-primary" />
        </div>
        <h1 className="text-xl font-bold mb-2">金融术语标准化工具</h1>
        <p className="text-sm text-gray-600 mb-4">专业的金融术语处理工具集</p>
      </div>
      <nav className="mt-5">
        <Link to="/std" className="flex items-center sidebar-nav-item active">
          <FileCheck className="mr-3" /> 术语标准化
        </Link>
      </nav>
    </div>
  );
};

export default Sidebar;